package com.chang.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.chang.common.utils.PageUtils;
import com.chang.member.entity.MemberEntity;
import com.chang.member.vo.GiteeAccountVo;
import com.chang.member.vo.MemberLoginVo;
import com.chang.member.vo.MemberRegisterVo;
import jakarta.validation.Valid;

import java.util.Map;

/**
 * 会员
 *
 * @author chang
 * @email 2045807586@qq.com
 * @date 2024-01-03 15:29:09
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    Boolean register(MemberRegisterVo memberRegister);

    Boolean checkEmailUnique(String email);

    Boolean checkUsernameUnique(String username);

    MemberEntity login(@Valid MemberLoginVo loginVo);

    MemberEntity login(GiteeAccountVo giteeAccountVo);
}

